import service from '@/utils/request'

const DocumentClassifyApi = {
  GetClassify(data) {
    // 查看文档分类
    return service.get('document/classify', {params: data });
  },
  AddClassify(data) {
    // 新增文档分类
    return service.post('document/classify',data);
  },
  EditClassify(data) {
    // 新增文档分类
    return service.put('document/classify',data);
  },
  UpdateClassifyState(data) {
    // 更新文档分类状态
    return service.put('document/classify/updateState',data);
  },
  ListClassify(data) {
    // 查看文档分类树状表
    return service.get('document/classify/list', {params: data });
  },
  TreeClassify(data) {
    // 获取文档分类 id、name
    return service.get('document/classify/classifyTree', {params: data });
  },
}

export default DocumentClassifyApi
